<?php
header("Content-type:text/html;charset=utf-8");
include_once('dbConn.php');//引用数据库连接文件
$sql = "select * from users WHERE uid='17'";//查询全部数据
$result = $conn->query($sql);

if ($result->num_rows > 0) {
    // 输出数据
    while($row = $result->fetch_assoc()) {
        echo "uid: " . $row["uid"]. "uname: " . $row["uname"]. "email: " . $row["email"]. "<br>";
    }
} else {
    echo "0 结果";
}